package order.api;

import order.pojo.Result;
import order.pojo.SecKillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "seata-stock", path = "/StockSeaContral")
public interface StockService {


    @PostMapping("/deduct")
    Result<Object> deduct(@RequestBody SecKillGoods secKillGoods);

}
